
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Vector" %>
<%@ page import="externaldata.gareSelection.GareSelection" %>

<form class="form-inline" role="form" id="form_search_train" method="post" action="">
	<div class="form-group">
		<label class="control-label" for="form_search_train_station_uic">Gare</label>
		<select class="form-control" id="form_search_train_station_uic">
			<option value="">-</option>
			<% List<GareSelection> gares = (List<GareSelection>) pageContext.getServletContext().getAttribute("gares_selection");
			if(gares != null && !gares.isEmpty()) {
				for(GareSelection gs : gares) { %>
					<option value="<%= gs.UIC %>"><%= gs.name %></option>
				<% }
			} %>
		</select>
 	</div>
 	<div class="form-group">
 		<button class="btn btn-primary" type="submit">Filtrer</button>
 	</div>
</form>